Long filename support for 16-bit Pascal programs.

This example shows a way to implement long filename support for 16-bit Pascal programs running under 32-bit Windows. 

Purpose: 

To give 16-bit Pascal programs a new lease of life - particularly OWL-programs dating from Turbo Pascal 1.5 or BP 7.0 because they cannot readily be ported to 32 bits. Also useful for dual-platform applications made with Delphi 1.0. 

Requirements: 

Delphi 2 for the 32-bit side.
Delphi 1 for the 16-bit side. To compile OWL programs with Delphi 1.0 you need the OWL source code (source\rtl70).
Since the 16-bit side uses VCL DDE components, Borland Pascal 7.0 or earlier won't do.

Breef desciption:

The basic idea is to have a separate 32-bit program running to show the true Explorer dialogs on request, and return the long filename together with the short version of it to the 16-bit application.

The 16-bit application can present the long filename to the user, and use the short version for file operations.

The communication between the 16-bit and the 32-bit sides is done through DDE. The DDE conversation is not initiated when running under Window 3.x, so a double set of filename-handling routines is needed for a dual-platform application. 

Full Source code (with some comments) included, including an OWL example program which runs under win 95 (with long filenames) and Win 3.1x (without them).

Version 1.0 1997. Freeware. No warrantry of any kind. Modify as needed.

Jens B. Kristensen 100776,1403
